home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / ms-0_06.lha / xms-0.06 / MsP.h < prev    next >
C/C++ Source or Header  |  1991-11-07  |  2KB  |  63 lines

  1. /* MsP.h - private header for MandelSpawn popup widget */
  2. /* Copyright (C) 1990, 1991 Andreas Gustafsson */
  3.  
  4. #ifndef _MsP_h
  5. #define _MsP_h
  6.  
  7. #include <X11/CompositeP.h>
  8.  
  9. #include "Ms.h"
  10. #include "Mama.h"
  11. #include "mspawn.h"
  12.  
  13. /* data type for the rubberband box */
  14. struct box
  15. { int x0, x1, y0, y1;
  16. };
  17.  
  18. /* widget instance structure */
  19. typedef struct 
  20. { ms_state xi;            /* X-independent stuff */
  21.   GC box_gc;            /* GC for the rubberband box */
  22.   XPoint box_origin;
  23.   XPoint box_corner;
  24.   Bool box_exists;        /* the box is supposed to be visible */
  25.   unsigned int box_hidden;    /* count of box hiding levels */
  26.   XImage *rectbuffer;        /* chunk buffer (previously scanline buffer) */
  27.   unsigned int rectbuffer_size; /* size of chunk buffer in bytes */
  28.   MamaWidget mama;              /* our creator */
  29.   Bool center_box;        /* make box symmetric around origin */
  30.   Cursor my_cursor;        /* cursor to use within Ms window */
  31.   int type;            /* frame buffer type (for fast drawing) */
  32. #ifdef MENU
  33.   Widget menu;            /* the popup menu */
  34. #endif
  35. #ifdef LABEL
  36.   Widget underflow_label;    /* the underflow label widget */
  37.   int underflow;        /* true if underflow label has been created */
  38. #endif
  39.   Bool sony_bug_workaround;    /* Sony bug compatibility mode */
  40.   int crosshair_size;           /* length of each arm of the crosshair */
  41. } MsPart;
  42.  
  43. typedef struct _MsRec 
  44. { CorePart    core;
  45.   CompositePart composite;
  46.   MsPart    ms;
  47. } MsRec;
  48.  
  49. /* Widget class structure */
  50. typedef struct 
  51. { int dummy;
  52. } MsClassPart;
  53.  
  54. typedef struct _MsClassRec 
  55. { CoreClassPart core_class;
  56.   CompositeClassPart composite_class;
  57.   MsClassPart ms;
  58. } MsClassRec;
  59.  
  60. extern MsClassRec msClassRec;
  61.  
  62. #endif /* _MsP_h */
  63.